package com.googlecode.linkmein

import com.googlecode.linkmein.domain.Name
import org.junit.Test

public class NameTest extends GroovyTestCase {
    void testNameEquality() {
        assert new Name("abcd", "") == new Name("abcda", "")
        assert new Name("abcd", "a") == new Name("abcd", "b")
        assert new Name("", "a") == new Name("", "b")
        assert new Name("a", "c") != new Name("b", "d")
    }
}